/*
 * XML Type:  ExtendedPayee
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ExtendedPayee
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML ExtendedPayee(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ExtendedPayeeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.ExtendedPayee
{
    
    public ExtendedPayeeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAYEEID$0 = 
        new javax.xml.namespace.QName("", "PAYEEID");
    private static final javax.xml.namespace.QName IDSCOPE$2 = 
        new javax.xml.namespace.QName("", "IDSCOPE");
    private static final javax.xml.namespace.QName NAME$4 = 
        new javax.xml.namespace.QName("", "NAME");
    private static final javax.xml.namespace.QName DAYSTOPAY$6 = 
        new javax.xml.namespace.QName("", "DAYSTOPAY");
    
    
    /**
     * Gets the "PAYEEID" element
     */
    public java.lang.String getPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEEID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYEEID" element
     */
    public net.ofx.types.x2003.x04.PayeeIdType xgetPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEEID$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "PAYEEID" element
     */
    public boolean isSetPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEEID$0) != 0;
        }
    }
    
    /**
     * Sets the "PAYEEID" element
     */
    public void setPAYEEID(java.lang.String payeeid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEEID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYEEID$0);
            }
            target.setStringValue(payeeid);
        }
    }
    
    /**
     * Sets (as xml) the "PAYEEID" element
     */
    public void xsetPAYEEID(net.ofx.types.x2003.x04.PayeeIdType payeeid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEEID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().add_element_user(PAYEEID$0);
            }
            target.set(payeeid);
        }
    }
    
    /**
     * Unsets the "PAYEEID" element
     */
    public void unsetPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEEID$0, 0);
        }
    }
    
    /**
     * Gets the "IDSCOPE" element
     */
    public net.ofx.types.x2003.x04.IdScopeEnum.Enum getIDSCOPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDSCOPE$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.IdScopeEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "IDSCOPE" element
     */
    public net.ofx.types.x2003.x04.IdScopeEnum xgetIDSCOPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdScopeEnum target = null;
            target = (net.ofx.types.x2003.x04.IdScopeEnum)get_store().find_element_user(IDSCOPE$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "IDSCOPE" element
     */
    public boolean isSetIDSCOPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(IDSCOPE$2) != 0;
        }
    }
    
    /**
     * Sets the "IDSCOPE" element
     */
    public void setIDSCOPE(net.ofx.types.x2003.x04.IdScopeEnum.Enum idscope)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDSCOPE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDSCOPE$2);
            }
            target.setEnumValue(idscope);
        }
    }
    
    /**
     * Sets (as xml) the "IDSCOPE" element
     */
    public void xsetIDSCOPE(net.ofx.types.x2003.x04.IdScopeEnum idscope)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdScopeEnum target = null;
            target = (net.ofx.types.x2003.x04.IdScopeEnum)get_store().find_element_user(IDSCOPE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdScopeEnum)get_store().add_element_user(IDSCOPE$2);
            }
            target.set(idscope);
        }
    }
    
    /**
     * Unsets the "IDSCOPE" element
     */
    public void unsetIDSCOPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(IDSCOPE$2, 0);
        }
    }
    
    /**
     * Gets the "NAME" element
     */
    public java.lang.String getNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "NAME" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(NAME$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "NAME" element
     */
    public boolean isSetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NAME$4) != 0;
        }
    }
    
    /**
     * Sets the "NAME" element
     */
    public void setNAME(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$4);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "NAME" element
     */
    public void xsetNAME(net.ofx.types.x2003.x04.GenericNameType name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(NAME$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(NAME$4);
            }
            target.set(name);
        }
    }
    
    /**
     * Unsets the "NAME" element
     */
    public void unsetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NAME$4, 0);
        }
    }
    
    /**
     * Gets the "DAYSTOPAY" element
     */
    public java.lang.String getDAYSTOPAY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAYSTOPAY$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DAYSTOPAY" element
     */
    public net.ofx.types.x2003.x04.DayspanType xgetDAYSTOPAY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(DAYSTOPAY$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DAYSTOPAY" element
     */
    public void setDAYSTOPAY(java.lang.String daystopay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAYSTOPAY$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAYSTOPAY$6);
            }
            target.setStringValue(daystopay);
        }
    }
    
    /**
     * Sets (as xml) the "DAYSTOPAY" element
     */
    public void xsetDAYSTOPAY(net.ofx.types.x2003.x04.DayspanType daystopay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(DAYSTOPAY$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DayspanType)get_store().add_element_user(DAYSTOPAY$6);
            }
            target.set(daystopay);
        }
    }
}
